package com.hsh.maoduo.controller;

import com.hsh.maoduo.common.Result;
import com.hsh.maoduo.service.RepositoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/repository")
public class RepositoryController {

    @Resource
    public RepositoryService repositoryService;
    @GetMapping("/getName")
    public Result getName(){
        return repositoryService.getName();
    }
}
